package edu.cmu.cs.stage3.alice.core.behavior;

public class WorldIsRunningBehavior extends AbstractConditionalBehavior {
	private static Class[] s_supportedCoercionClasses = { WorldStartBehavior.class };
	//Rem @Override
	public Class[] getSupportedCoercionClasses() {
		return s_supportedCoercionClasses;
	}
	//Rem @Override
	protected boolean invokeEndOnStop() {
		return true;
	}
	//Rem @Override
	protected void started( edu.cmu.cs.stage3.alice.core.World world, double time ) {
		super.started( world, time );
		set( true );
	}
	//Rem @Override
	protected void stopped( edu.cmu.cs.stage3.alice.core.World world, double time ) {
		set( false );
		super.stopped( world, time );
	}
}